//package com.myc.cloud.gateway.config.filters;
//
//import org.springframework.cloud.gateway.route.RouteLocator;
//import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @Classname RouterFilter
// * @Description 路由编码配置
// * @Date 2020-08-24 21:25
// * @Created by myc
// */
//@Configuration
//public class GatewayConfig {
//
//    @Bean
//    public RouteLocator custom2RouteLocator(RouteLocatorBuilder routeLocatorBuilder){
//       RouteLocatorBuilder.Builder routes = routeLocatorBuilder.routes();
//       routes.route("/baidu",r->r.path("/guonei").uri("http://news.baidu.com/guonei")).build();
//       return routes.build();
//    }
//}
